﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Infrastructure.Data
{
    public class EfRoomOccupancyReportQuery : IRoomOccupancyReportQuery
    {
        public IEnumerable<RoomOccupancyReport> GetAllRoomOccupancyReport()
        {
            var context = new hmsDBEntities();
            return context.guestDetails.Select(ror => new RoomOccupancyReport()
            {
                guestID = ror.guestID,
                guestFirstName = ror.guestFirstName,
                guestLastName = ror.guestLastName
            });
        }
    }
}
